package com.example.springmvc_demo2.mapper;

import com.example.springmvc_demo2.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    int insertUser(User user);
    User findByUsername(String username);
    User findByPhone(String phone);
    User findByEmail(String email);
    int updatePasswordByUsername(@Param("username") String username, @Param("newPassword") String newPassword);
} 